package com.theme.passport.config;

import com.theme.common.third.sms.AliyunSmSConfigure;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 类:WeachtConfig.java <tb>
 * 描述： 初始化微信配置项 <tb>
 * 作者:cuixinfu@51play.com <tb>
 * 时间:20178年11月07日 下午13:01:15 <tb>
 */
@Component
@ConfigurationProperties(prefix = "sms.aliyun")
public class SmsAliyunConfig {

    private String accessKeyId;
    private String accessKeySecret;
    private String signName;
    private String code;

    public String getAccessKeyId() {
        return accessKeyId;
    }

    public void setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
        AliyunSmSConfigure.setAccessKeyId(accessKeyId);
    }

    public String getAccessKeySecret() {
        return accessKeySecret;
    }

    public void setAccessKeySecret(String accessKeySecret) {
        this.accessKeySecret = accessKeySecret;
        AliyunSmSConfigure.setAccessKeySecret(accessKeySecret);
    }

    public String getSignName() {
        return signName;
    }

    public void setSignName(String signName) {
        this.signName = signName;
        AliyunSmSConfigure.setSignName(signName);
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
        AliyunSmSConfigure.setCode(code);
    }
}
